var myShop ={


    registerMenuEvent:function () {
        var _this = this;

        $('#menu .easyui-tree').tree({
        onclick:function (node) {
            var href = node.attributes.href;
            _this.addTab(node.text,title);
        }

    });
    },

    addTab:function (title,href) {
       if( $('#tab').tabs('exists',title)){
           $('#tab').tabs('select',title);

       }else {
           $('#tab').tabs('add', {
               title: title,
               href: href,
               closable: true

           });
       }

    },

    closeTab:function (title) {
        $('#tab').tabs('close', title)
    }
}